package com.yc.hotel.feign.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.yc.hotel.dto.RoomTypeDTO;
import com.yc.hotel.service.IRoomTypeService;


@RestController
@RequestMapping("/types")
public class RoomTypeClientController {

	@Autowired
	private IRoomTypeService roomTypeServiceImpl;

	@PostMapping("/finds")
	private List<RoomTypeDTO> finds(@RequestParam Map<String, Object> map) {
		List<RoomTypeDTO> list = roomTypeServiceImpl.findsF(map);
		return list;
	};
}
